program rtcClient;

uses
  mybean.console,
  mybean.core.beanFactory,
  mybean.tools.beanFactory,
  Forms,
  uFormMain in 'uFormMain.pas' {FormMain};

{$R *.res}

begin
  Application.Initialize;
  Application.Title := 'RTCClient';
  ExecuteLoadLibFiles('Plugin\rtc*.dll');
  beanFactory.RegisterMainFormBean('FormMain', TFormMain);
  registerFactoryObject(beanFactory, 'default');
  TMyBeanFactoryTools.GetBean('FormMain');
  //Application.CreateForm(TFormMain, FormMain);
  //Application.Run;
  try
    Application.Run;
  finally
    Application.MainForm.Free;
    ApplicationContextFinalize;
  end;
end.
